<include file="Public:header" />
<link rel="stylesheet" type="text/css" href="../Public/css/pic_zhanpin.css"/>
<script src="../Public/js/calendar.js" type='text/javascript' language="javascript"></script>



<div class="inner-content">
  <div class="crumbs">当前位置:<a href="#">展品</a></div>
  <div class="w_content">
    <div class="content_r">
<form action="{:U('Exhibits/index')}" method="post">
    <div class="content_r_top">
        <div class="retrieval">
            <div class="retrieval_l">
           <div class="secdiv">
                <p class="stit">上传时间 :</p>
                <p><input type="radio" id="stime1" name="stime" class="r_btn" onclick="showctime();" value="1" <empty name="choose.stime">checked='checked'</empty> <if condition="$choose.stime eq 1">checked='checked'</if> />选择时间</p>
                <p><input type="radio" id="stime2" name="stime" class="r_btn" onclick="closectime();" value="2"  <if condition="$choose.stime eq 2">checked='checked'</if>/>快捷时间段
                <select class="r_btn" id="ftime" name="ftime" onclick="select_fast_time()" style="width:60px;">
                <option id="ftime_defalut" value="1" <if condition="$choose.ftime eq 1">selected='selected'</if>>全部</option>
				<option value="2" <if condition="$choose.ftime eq 2">selected='selected'</if>>最近一天</option>
				<option value="3" <if condition="$choose.ftime eq 3">selected='selected'</if>>最近两天</option>
				<option value="4" <if condition="$choose.ftime eq 4">selected='selected'</if>>最近一周</option>
				<option value="5" <if condition="$choose.ftime eq 5">selected='selected'</if>>最近半月</option>
                </select>
                </p>
                <p class="ymd" id="ctime" <if condition="$choose.stime eq 2"> style="display:none" </if> >
				开始时间:<input name="btime" type="text" style="width:100px" id="btime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.btime}" readonly="readonly"/>--
				结束时间:<input name="etime" type="text" style="width:100px" id="etime" maxlength="18" onfocus="c.showMoreDay = false;c.show(this);" value="{$choose.etime}" readonly="readonly"/>
				</p>
            </div>
            <div class="secdiv">
            	
                <p class="stit">&nbsp;检&nbsp;索&nbsp;词 :</p>
                <p style="height:auto; padding-top:5px;"><input type="text" class="r_btn" id="keyword1" name="keyword1" value="{$choose.keyword1}" <if condition="$choose.bything eq 2">style="display:none"</if>/></p>
				<p><input type="text" id="keyword2" class="r_btn" name="keyword2" value="{$choose.keyword2}"  <empty name="choose.bything">style="display:none"</empty><if condition="$choose.bything eq 1">style="display:none"</if> onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" onpaste="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" oncontextmenu = "value=value.replace(/[^\u4E00-\u9FA5]/g,'')" />
                <input type="radio" class="r_btn" id="bything_defalut" name="bything" value="1" onclick="zhongwen_1();" <empty name="choose.bything">checked='checked'</empty> <if condition="$choose.bything eq 1">checked='checked'</if> />按 词
				<input type="radio" class="r_btn" name="bything" value="2" onclick="zhongwen_2();" <if condition="$choose.bything eq 2">checked='checked'</if>  />按 字
				<input type="checkbox" class="r_btn" id="all_key" name="all_key" value="1" <empty name="choose.all_key"><else /> checked='checked' </empty> />完全匹配
				<input type="checkbox" class="r_btn" id="all_sql" name="all_sql" value="2" <empty name="choose.all_sql"><else /> checked='checked' </empty> />全库</p>
                &nbsp;&nbsp;&nbsp;&nbsp;<p>最近检索词<select id="zkeyword" name="zkeyword" onchange="change_keyword()" class="r_btn" style="width:60px;">
                <option id="zkeyword_defalut" value="">无</option>
                <volist id="zk" name="zkeywords">
				<option value="{$zk}">{$zk}</option>
				</volist>
                </select></p>
            </div>
            
            <div class="secdiv">
                <p class="stit">结果定制 :</p>
                <p style="margin-left:6px;">每页显示数目<select class="r_btn" style="width:60px;" id="count" name="count">
                <option  value="10"  <if condition="$choose.count eq 10">selected='selected'</if>>10</option>
				<option id="count_defalut" value="15" <empty name="choose.count"> selected='selected' <else />  </empty> <if condition="$choose.count eq 15">selected='selected'</if>>15</option>
				<option value="20" <if condition="$choose.count eq 20">selected='selected'</if>>20</option>
                </select></p>
                <p><input type="radio" class="r_btn" id="orderby_default" name="orderby" value="1" <empty name="choose.orderby">checked='checked'</empty> <if condition="$choose.orderby eq 1">checked='checked'</if>/>时间倒序</p>
                <p><input type="radio" class="r_btn" name="orderby" value="2" <if condition="$choose.orderby eq 2">checked='checked'</if> />时间正序</p>
                <p><input type="radio" class="r_btn" name="orderby" value="3" <if condition="$choose.orderby eq 3">checked='checked'</if>/>相关度</p>
            </div>
			<input type="hidden" id="submit" name="submit" value="1"/>
            <div class="secbutt"><input type="submit"  value="检 索" class="btn_r"/><input type="submit"  value="二次检索" class="btn_r" onclick="change_submit();"/><input type="button"  value="重 置" class="btn_r" onclick="byreset();"/></div>
           
            </div>
             <div class="retrieval_r" ><input type="button" onclick="window.location.href='{:U('Exhibits/upload')}'"/></div>
        </div>
        
    </div>
    </form>
	<div class="clear"></div>
      <div class="content_r_bottom">
        <ul>
		<if condition="$statusx eq 1">
			<div style="margin:0 auto; width:240px;"><h3>对不起，没有符合要求的资源。</h3></div>
		<else />
	          <volist id="vo" name="list">
	          <li class="imglist">
	          <if condition="$vo.url eq ''" >
				<img src="__PUBLIC__/Images/no_img.jpg" />
			  <else />
	          <a style="display:block;" href="__PUBLIC__/Uploads/Exhibits/sy_{$vo.url}" class="tooltip" title="" onclick="lianjie({$vo.eid});"><img src="__PUBLIC__/Uploads/Exhibits/s_{$vo.url}" alt="{$vo.title}" /></a>
	          </if>
	          <p><a href="{:U('Exhibits/info',array('vid'=>$vo['eid']))}">{$vo.title|msubstr=0,8}</a><span>({$vo.point})</span></p>
	          </li>
	          </volist>
          </if>
          <div class="clear"></div>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="clear"></div>
      <div class="footer_num">
      {$page}
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>


<script type="text/javascript">
	function showctime()
	{
		$("#ctime").show();
	}

	function closectime()
	{
		$("#ctime").hide();
	}
	
	function select_fast_time()
	{
		$(":input[name='stime']").val(2);
		$("#stime1").attr("checked","");
		$("#stime2").attr("checked","true");
		$("#ctime").hide();
	}

	function change_keyword()
	{
		var zkeyword=$("#zkeyword").val();
		$("#keyword1").val(zkeyword);
		$("#keyword2").val(zkeyword);
	}
	function change_submit()
	{
		$("#submit").val(2);
	}

	function byreset()
	{
		//$.post("{:U('Search/reset')}",{},function(data){});
		$("#ftime_defalut").attr("selected","selected");
		$("#stime1").attr("checked","checked");
		$("#stime2").attr("checked","");
		$("#ctime").show();
		$("#zkeyword_defalut").attr("selected","selected");
		$("#count_defalut").attr("selected","selected");
		$("#btime").val('');
		$("#etime").val('');
		$("#keyword1").val('');
		$("#keyword2").val('');
		$("#bything_defalut").attr("checked","checked");
		$("#all_key").attr("checked","");
		$("#all_sql").attr("checked","");
		$("#orderby_default").attr("checked","checked");
	}

	function zhongwen_1()
	{
		$("#keyword2").hide();
		$("#keyword1").show();
	}
	
	function zhongwen_2()
	{
		$("#keyword1").hide();
		$("#keyword2").show();
	}

	function lianjie(vid)
	{
		$(".tooltip").attr("href","./info/vid/"+vid);
	}
			
</script>


<include file="Public:footer" />